﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DormMS.Model.ViewModels
{
    public  class V_Order:Order
    {
        public string OrderStatusDes {
            get {
                return OrderState.ToString();
            }
        }

        public string StatusDes {
            get
            {
                if (OrderState == Enum.OrderStatus.已确认 && (SendStatus == Enum.OrderSendStatus.已发货 || SendStatus == Enum.OrderSendStatus.部分发货))
                {
                    return SendStatus.ToString();
                }
                return OrderState.ToString();
            }
        }

        public string PayStatusDes { get { return PayState.ToString(); } }

        public string SendStatusDes { get { return SendStatus.ToString(); } }

        public string OrderTypeDes { get { return OrderType.ToString(); } }
       

        public string PayTypeDes { get { return PayType.ToString(); } }

        public string Province { get; set; }

        public string City { get; set; }

        public string Area { get; set; }
        public bool IsHaveReturn { get; set; }

        public bool IsAllowReturn {get;set;}

        public List<OrderDetail> OrderDetailList { get; set; }

        public List<V_Delivery> DeliveryList { get; set; }

        public List<V_OrderDetail> V_OrderDetailList { get; set; }
    }
}
